import service from '../utils/axios';

let getdata=(url,params)=>{
    return new Promise((resolve,reject)=>{
        service.request({
            url,
            method:"get",
            params
        }).then((ok)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}

export default getdata;